package com.nuoniu.sibanyun.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 结算方式
 * </p>
 *
 * @author baiqiang
 * @since 2020-10-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_settle_style")
@ApiModel(value="ErpSettleStyle对象", description="结算方式")
public class ErpSettleStyle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "使用编码级次")
    @TableField("grade_rule_level")
    private Integer gradeRuleLevel;

    @ApiModelProperty(value = "使用的编码规则")
    @TableField("grade_rule_str")
    private String gradeRuleStr;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "状态0停用 1正常")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "支票管理")
    @TableField("cheque_management")
    private Boolean chequeManagement;

    @ApiModelProperty(value = "零售抵现 ")
    @TableField("virtual_pay")
    private Boolean virtualPay;

    @ApiModelProperty(value = "银行账户id")
    @TableField("bank_account_id")
    private Integer bankAccountId;

    @ApiModelProperty(value = "银行账户")
    @TableField("bank_account")
    private String bankAccount;

    @ApiModelProperty(value = "制单日期 ")
    @TableField("made_date")
    private LocalDateTime madeDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;


}
